package com.hyst.repository;

import java.util.List;
import java.util.Map;

import com.hyst.domain.*;

import tk.mybatis.mapper.common.Mapper;

public interface TeacherPeriodMapper extends Mapper<TeacherPeriod> {

	/**
	 * @Description:
	 * @param times
	 * @return List<TeacherPeriod>
	 */
	List<TeacherPeriod> getPeriod(Integer[] times);

	List<TeacherSchedule> getTeacherSchedules(TeacherSchedule ts);

	/**
	 * @Description: 设置课程占用
	 * @param purchaseCourse
	 * @return int
	 */
	int setUsed(PurchaseCourse purchaseCourse);

	/**
	* @Description: 
	* @param ids	void
	*/ 
	int deleteAll(List<String> ids);

	/**
	* @Description: 
	* @param periods	void
	*/ 
	int insetAll(List<TeacherPeriod> periods);

	/**
	* @Description: 
	* @param periodEdits	void
	*/ 
	int retentions(PeriodEdits periodEdits);

	/**
	* @Description: 
	* @param purchaseCourseId	void
	*/ 
	int reductionByPcUid(String purchaseCourseId);

	String getAuditionTime(Map<String,Object> studentid);

	void deletePeriod(TeacherPeriod teacherPeriod);

	String getStuName(String orderId);

	List<TeacherPeriod> getPeriodByPur(String purchId);

	List<String> getStudentId(String picid);

	int updateTeacherUsed(PurchaseCourse purchaseCourse);

	int updateTeacherUsedIn(PurchaseCourse purchaseCourse);

	int getMaxCuId(String pucid);

	void updateCurDelete(Map sqlMap);

	Map getClassDate(Integer id);
}
